Counts the number of font trackings in a font.
OSStatus ATSUCountFontTracking (
ATSUFontID iFontID,
ATSUVerticalCharacterType iCharacterOrientation,
ItemCount * oTrackingCount);
iFontID
A value of type ATSUFontID. Pass the ID of the font whose font trackings you want to count.
iCharacterOrientation
A value of type ATSUVerticalCharacterType. Pass the glyph orientation of the font tracking you want to count. See Glyph Orientation Constants for a description of possible values. You must specify this value because there are different font trackings for different glyph orientations.
oTrackingCount
A pointer to a count. On return, the number of font trackings in the font. You cannot pass NULL for this parameter.
function result
A result code. The result code kATSUInvalidFontErr indicates that the ID does not correspond to any installed font. For a list of other ATSUI-specific result codes, see Result Codes.
DISCUSSION
The ATSUCountFontTracking function obtains the total number of font trackings defined in a font. You can pass one less than this count in the iTrackIndex parameter of the function ATSUGetIndFontTracking.